package com.tater.service.impl;

import com.tater.mapper.UserMapper;
import com.tater.model.User;
import com.tater.service.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author Administrator
 */
@Service
public class UserServiceImpl implements IUserService {


    @Resource
    UserMapper userMapper;

    /**
     * 根据用户id 查询用户信息
     *
     * @param id
     * @return
     */
    @Override
    public User findByUserId(Integer id) {
        return userMapper.findById(id);
    }
}
